#pragma once
class ImageBuffer
{
public:
	BOOL m_bAutoDelete;
	BYTE*m_pBuf;
public:
	ImageBuffer();
	~ImageBuffer();
};

class CxxImage
{
	class CxxImage_imp*imp;
public:
	CxxImage(void);
	~CxxImage(void);
	bool load(const TCHAR*path);
	CSize getSize()const;
	bool resample(__out ImageBuffer&buf,__in int cx,__in int cy,__out bool&bAlpha,__in bool bgra_order);
};

